Updated detail view

Added sample themes
Refactored offer db interface
Resolved issue with websql not retrieving offer details