Minor apache/mysql fixes, plus removing old scripts