Finish storing data to DB