update database prototype