reorganized the way the backend gets its paths to the different databases.  Added functions for loading and saving the pictures database.