we probably need to go through this again.
quick thoughts
nice/tidy/clean!
use file extensions e.g .sql
drop the license; nothing to do with me! this is your work
find a single patient and work though using the front end as reference to check that your code is behaving as expected. this is going to give you confidence that the work is the quality you want