Add foreign constraint to log_entry(log_server_id)
Add indexes to speed up slow queries