basic db setup
merged live preview with basic db