able to store posts in database following video 24