Changes to get database work.