Changed default table names, added history and user functions