workign on propogating db queries to rest of app