Database: utility insert function