fix pattern for database names
use regex which was suggested by dragotin