moving database code to persistence.go
remove variable confluence fields