Move database related code from backends to db

Related to issue #18
Update FSF's address

Signed-off-by: Germán Poo-Caamaño <gpoo@gnome.org>