You not saying where this database is, but if you want to run database locally (within the pi), then worth checking out SQLite ( https://www.raspberrypi.org/forums/viewtopic.php?f=105&t=111447 ). if want to write to db remotely like azure, then this interesting weather station project ( http://www....