Added format_list_for_db function and a few other things to handle how values are properly converted from POST when inserted into the database