dao fixed, sql script added