Implementation of DAO Factory instead of data/Database.java class