Added a new table (wtps)
DB ping thread introduced.
Initial commit.