optimize dao, move dns string to config, prepare database schema files