Added sql parameter for prepared statement
Moved variable into helper method
Need another argument in the helper