Separated database logic into DAO objects.