update database using freign keys now
add slot.sql file