created db manager and some methods
simple file upload added