DbManager code style fix + right Exception type fix