A solution to easily generate sql command