added model and clean up
Finish gallery-database