added saving basic data to db
full data loading, part of first query
clean up