Push # 21

-updated preference table database functions