Fixed memory leaks on database connection