Improved speed of DB search by adding indices.