Revert "Fixed pattern matching for valid database names"

This reverts commit dddd55b8758cda6dcc2b41d7093a693569f0cbf2.