creates create method in sql_object