Regex misses valid database names

underscores and dots are legal database names