Just to give you something to chew on, I use this code to run Web apps I've written in PHP that manage MySQL databases. PHP is free (although no longer part of the standard macOS install). MySQL is free. And they make a really nice package for managing (data entry, editing, reporting, maintenance) databases.
So you can go a long way with nothing more than the Custom HTML Prompt
wrapped around some CSS, HTML, PHP and MySQL.