Implemented insrt() in database class