-fixed database connection problem