first working version pulling from MySQL