[database] fix missing database pool connexion
[batch] fixed bug in getProjects() method