changeing default project
fixing functions to work with local database and only small amount online
adding a manager+lock to avoid simlutanious writing to database