Added sqlite database

Previous server database has been replaced with a SQLite one and some
problems of compatibility have been fixed.