core: fix database usage for send_vacation and save_user