Changed where shared database functions lived.