Added a database, and a script to pull ions from the database.