Implemented SQL command