Add database config and DAO