DB setup and basic saving