put all the sql at the bottom in a const