Sinatra App that distinguishes Database records by if they are Published/Not Published or if they are a Page/Post