Added [] delimiter to accomadate database names with strange characters in it.