return with working print statements. sql errors