Added the database foundation and Keyset registery