Setting-up the database