Now uses DatabaseAdapter to get connection to database