Fix bug on db handler regexp