data base api fix