A Python based script for getting catalogues from the SDSS database, optimized for KiDS observations