Removed unused SQLA types
Moved the permission checks in a new file
Updated README.