bug fixed, persisting to DB