Improve database routes loading