Added functional tests
some corrections and updates (dql queries)
added image upload (simplified)