[db] Adding support for user types cleanup

The following patch adds support for user-types cleanup in the database.
Call had been added as well to the cleandb function.

Change-Id: I1a7d5a644895be7374febec081e4931be1902962
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1034201
Signed-off-by: Eli Mesika <emesika@redhat.com>