Fix functionalTests issue on db