added compact to database
merge in database compact