Stopped attribute error on station load.
Changed REPLACE INTO commands to INSERT INTO ... ON DUPLICATE KEY commands in save function.
Server shutdown is now much faster.