refactoring API calls, validation and db creation
Merge pull request #7 from kaelinbu/sample_images

refactoring API calls, validation and db creation