Switched to postgresql, added init_db function

init_db can be used from the shell to create a default admin user.