creating the right db