Added customizable patterns to the db. 
Trying to fix incompatibility with hsql