make submit work even without db
flag to turn db on/off