Add new python reference for db optimization