move database defaults into specific modules

move db_port_real

fix template

move things around