Revert "Revert "add composer.json""

This reverts commit 90a9bde627aa8bdbb2bec172e734aaafe4a73dc8.
Revert "event listener and function to create tables"

This reverts commit 0eac117a520abc34077675e17e52d446bfa49451.