my database schema is as follows enter image description here - Online Db Schema