Reading database fix