database crud improvments