Determine database by environment