Fixed channel-based flags not saving to disk

- Fixed some commands not allowing superadmin access.
- Stop using the aphdb file extension and use simply ".db"