fixed major problem in connection to database dropped