[v6r11] Fix for ProxyDB_logs table

Added index and PK. Also fixed purgeLogs.