make database available to create and show actions
display posts from db in index or one at a time