now saves to db