Added $prefix_ to constraint to get sure that they are uniqe in the database. Fixes YASP-295