Added all the right keys and indexes to the ext_tables.sql file. Added a new log table, so we can keep track of all the ip adresses an user used, so that its possible to ban him on ip address in the future.