combined sql statements and added admin
merged sql statements and added admin