same error, sql queries had to be put in