add length restriction to returned database name