Existence of relative integral basis over quadratic fields and Polya property