Reading/writing db + init and add commands