sqlite3 database interaction.