fixed select bug (when query != 'SELECT *'), added encrypting\decrypting passwords