Support using one central database table on multiple wikis

Change-Id: I78422d9c1e177982004b4e8993657b37b42df799