Fixed bug causing db only to be initialized in environment "local".