Entering the SQL-related code