Added authorization using DB;
Used MD5 hash instead of open passwords;