changing GET fuction parameters to accept instead of file names, also
changing return function to read info from a database instead of image
directories