FINALLY fixed database connection while deployed. YAY