use get_database_config() to detect database service
bin/compile: database doesn't have to be postgresql
remove cruft
Merge remote-tracking branch 'origin/mysql'