Fixed error after banning a user; Added checks before trying to encrypdecrypt with openssl; Reseting SELECT statement on database queries that are terminated before being completed