Added initial database implementation for weights.