Update environment detection methods
Pull database credentials out of the environment
Update travis to use codeception