fix pattern for database names - #629

fix pattern for database names - fix for issue core #629

Please review
@DeepDiver1975 
@karlitschek