Implemented References

Added code to Statement::fillData and created functions Statement::getReferences, Statement::setReferences and Statement::updateDataFromResult