Setting up database for application.