More work on uploading to/retrieving images from db (not the best way to store avatars, but for blob practice).