Fixed database file loading, works in crons now