Changed database access method. No longer hardcoded in class