Added enviromment paths (optional)
Added method to fetch last id inserted
Corrections of tests