finished library responsible for add application to database, and creating files on server in correct path