added in admin function singleton pattern
added in dao singleton pattern