Gave Sql_proxy permission to get data
Fixed bugs in Gen4 from last Gen4 commit

Test your work you idiot!!
minor cleanup