DB/EF updates and move cleartable function

Updated the database to remove language concept (ie. table definition is
now looser and more generic). Updated EF for above.
Moved utility cleartable function to Common project.