Edited index design.
Added a function of posting rows to mysql.