Corrections to get_data_from_db() and post()
This commit restores our original get_data_from_db() method.
Over the last few weeks, we had switched to a newer syntax, but it proved difficult to work with and caused issues for our code generator. Additionally, we have fixed the post() helper function, which was erroneously returning NULL values instead of empty strings when a targeted posted variable was not found.