Add database.[ch] files.

Thoses files will be the wrapper to the database
calls. All calls to the database should be done
here. This is supposed to ease the change or the
support of other databases
Tansfert sqlite3_version call to database.c