create postgresdb later
add a sync barrier for handlers (guuuh)