Wrote db module based on sqlite3 library.