Moved getLastIndex to DataManager
Added c3p0 connection pool