added password field and database encryption