Added prepared statements to load() and count() + some fixes for indentation