added ws for database