finished functions
afmysql_dd_insert_db added