Set correct owner of postgre 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.

This commit also fixes the issue when migrations are not run on sqlite
since it did not emit any refresh notification.