Java processes are headless on OS-X
[#62864344] Convert GpdbDatabase to an STI model

 - Creates consistency with Schema model and prepares for a PgDatabase
 - gpdb_databases table becomes databases and gets type column
 - Migrates the polymorpic association types GpdbDatabase -> Database
 - Rename indexes to match table name