Thanks Leonardo, this is indeed a good first step - putting all that SQL into version control :)
I highly recommend the Refactoring Databases book for the next steps in moving business logic around or out of the database:
as mentioned by Martin Fowler here:
currently the domain is offline but Archive.org have your back:
Thank you for the recomendation, i really need read this book
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.