decouble control from model, database writing methods now in DBHelper, so they can be handled for synchronization