Changed logging for user search. Removed unused fields from logs table and added new. Fixed bug in migrations.