corrections connection to database working