build db if not exists

so now instead of having a create.sql and updates, the system will have a json file with description of the tables so when initialising  the db, the system will be able to check the database integrity and the existence (+version) of all tables.
Another small update was to encapsulate encryption (both MD5 and RSA)