clean up database and model handling

We now load the database dump into the first model ever, which means
that no notifications are dropped during the data load.

Signed-off-by: Jan Dvořák <mordae@anilinux.org>