Refactoring database installer to use the code which is now part of FOF