Got DAO layer working