try another way to handle database connections