Trying to make database work.