DB Class

Created all database related methods in DB Class.