Tips

Restore the admin default password (admin / admin):

update users set crypted_password = '88c991e39bb88b94178123a849606905ebf440f5', salt='6522f3c5007ae910ad690bb1bdbf264a34884c6d' where login = 'admin';

Restore the admin rights when lost on update:

INSERT INTO user_roles(user_id, role, organization_uuid) VALUES ((select id from users where login='admin'), 'admin', (select uuid from organizations limit 1));