first attempt at adding image query db model