Fleshing out sqlite3 database for top