added priority to database