[Bugfix] Check if db file exists only when performing read commands.
Replace package used to get user's password.