more robust way to check if a database exists
switch to postgresql apt repository