Move database into db package.