integration of admin with DB

not done yet