Added checkAdmin function
Updated db.sql