Updated sql queries in fabfile