fixed some errors

* create Frames table when creating database
* power down worker when no more shots
* put gpu configuration after importing bpy module