added sqlite databasre and methods