save user photo source into database