Allow access to generate_tables.php
Fixed bug where admins are locked out of app in maint mode
Merge branch 'develop'