Added Database

added items into database instead of shared preferences