DB bugfix, install stub, db error fix.

Signed-off-by: Horváth Balázs <qqroach@riftworks.org>