Database iteraction project implemented in php