Added store settings in database instead shared preferences