Set correct owner of PostgreSQL DB

With this change we can use foreman-rake db:drop to drop the whole DB.
It's needed for installer which can drop db and let it recreate using
existing tools.
Run migrations when using sqlite

Fixes the issue when migrations are not run on sqlite
since it did not emit any refresh notification.