First working script to write ephem data to MySQL database.