Added addchar function, and renamed cpp/db files appropriately