Please do not ask people to write entire scripts or design entire systems for you. If you can’t answer the three questions above, you should probably pick a different category.
I would read this and better adjust your post to fit with what is outlined in this category’s about post.