Surround dbname with square bracket. I should've done this before.