fixed database connection, again