changed postgresql to just sql