added database write
changes
merged changes