insert/update functions for project manager