fix bugs in application context for data dao implementation