Separating database class from dbcon for debugging