Started adding sqlite database stuff