* Reorder .sql definitions
* Add indexes to databases
* Fix crypto functions (AES-CTR)