work on the sinatra pages connecting them together and accessing the database correctly