Regex misses valid database names

underscores and dots are legal database names
Merge pull request #3 from OriPekelman/master

Current regexps misses some valid database names