Code adapted for new db template