Preparing smaller database.