Synchronized access to DB

DB access synchronised
Swipe changed to left-to-right only
Removed unnecessary things