Fix bugs in autorizacion.php

Escape some php variables
Unset $_SESSION when closing user session
Remove duplicate file creation cuenta.php
Updated table to use InnoDB and utf8mb4
Fix order of parameters in SHA2 function
Assign session using insert_id instead of doing a query to look for the
last record