setup synced with db