corrected error in SQL of dbf_getloginid()